# your-html-minifier

```bash
npm i your-html-minifier
```

### htmlMinifier(options)
- options <[Object]> 文档看 https://github.com/kangax/html-minifier#options-quick-reference

压缩 HTML Response 内容，功能和 [koajs/html-minifier](https://github.com/koajs/html-minifier) 相同，且支持 koa 2.x

```js
import htmlMinifier from 'your-html-minifier'

app.use(htmlMinifier({
  collapseWhitespace: true,
  minifyCSS: true,
  minifyJS: true
}))
```

[Object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object "Object"
